package top.lyjwn.ajui.data;


import java.util.Date;

import top.lyjwn.ajui.util.TokenUtil;
import top.lyjwn.utils.UniqueUtil;

public class SenderMessage {

    private int type;

    private String content;

    private String receiver;

    private Date sendTime;

    private String token;

    private String messageClientId;

    public SenderMessage(int type) {
        this.type = type;
        this.token = TokenUtil.getToken().getToken();
        this.sendTime = new Date();
        this.messageClientId = UniqueUtil.getUUID();
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getMessageClientId() {
        return messageClientId;
    }

    public void setMessageClientId(String messageClientId) {
        this.messageClientId = messageClientId;
    }
}
